package com.jzmy.cultivate;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author mengzhichao
 * @create 2022-08-22-8:50
 */
@SpringBootApplication
@EnableDiscoveryClient    //服务注册
@EnableFeignClients  //服务调用
@EnableScheduling   //定时任务
@ComponentScan({"com.jzmy","com.example"})//扫描异常类
@MapperScan("com.jzmy.**.dao")
public class CultivateApplication {

    public static void main(String[] args) {
        SpringApplication.run(CultivateApplication.class, args);
    }

}
